﻿using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace AbpEntityFrameworkcore.Migrations
{
    /// <inheritdoc />
    public partial class _202463 : Migration
    {
        /// <inheritdoc />
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.AlterColumn<string>(
                name: "Size",
                table: "lognote",
                type: "nvarchar(max)",
                nullable: true,
                comment: "大小",
                oldClrType: typeof(string),
                oldType: "nvarchar(max)",
                oldNullable: true);

            migrationBuilder.AlterColumn<string>(
                name: "OrderNo",
                table: "lognote",
                type: "nvarchar(max)",
                nullable: true,
                comment: "工单号",
                oldClrType: typeof(string),
                oldType: "nvarchar(max)",
                oldNullable: true);

            migrationBuilder.AlterColumn<string>(
                name: "MaterialName",
                table: "lognote",
                type: "nvarchar(max)",
                nullable: true,
                comment: "物料名称",
                oldClrType: typeof(string),
                oldType: "nvarchar(max)",
                oldNullable: true);

            migrationBuilder.AlterColumn<string>(
                name: "MaterialCode",
                table: "lognote",
                type: "nvarchar(max)",
                nullable: true,
                comment: "物料编码",
                oldClrType: typeof(string),
                oldType: "nvarchar(max)",
                oldNullable: true);

            migrationBuilder.AlterColumn<string>(
                name: "Definition",
                table: "lognote",
                type: "nvarchar(max)",
                nullable: true,
                comment: "说明",
                oldClrType: typeof(string),
                oldType: "nvarchar(max)",
                oldNullable: true);

            migrationBuilder.AlterColumn<string>(
                name: "Batch",
                table: "lognote",
                type: "nvarchar(max)",
                nullable: true,
                comment: "批次",
                oldClrType: typeof(string),
                oldType: "nvarchar(max)",
                oldNullable: true);

            migrationBuilder.AddColumn<string>(
                name: "BoxCode",
                table: "lognote",
                type: "nvarchar(max)",
                nullable: true,
                comment: "料盒");

            migrationBuilder.AddColumn<string>(
                name: "WarehouseLineCode",
                table: "lognote",
                type: "nvarchar(max)",
                nullable: true,
                comment: "位置");
        }

        /// <inheritdoc />
        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "BoxCode",
                table: "lognote");

            migrationBuilder.DropColumn(
                name: "WarehouseLineCode",
                table: "lognote");

            migrationBuilder.AlterColumn<string>(
                name: "Size",
                table: "lognote",
                type: "nvarchar(max)",
                nullable: true,
                oldClrType: typeof(string),
                oldType: "nvarchar(max)",
                oldNullable: true,
                oldComment: "大小");

            migrationBuilder.AlterColumn<string>(
                name: "OrderNo",
                table: "lognote",
                type: "nvarchar(max)",
                nullable: true,
                oldClrType: typeof(string),
                oldType: "nvarchar(max)",
                oldNullable: true,
                oldComment: "工单号");

            migrationBuilder.AlterColumn<string>(
                name: "MaterialName",
                table: "lognote",
                type: "nvarchar(max)",
                nullable: true,
                oldClrType: typeof(string),
                oldType: "nvarchar(max)",
                oldNullable: true,
                oldComment: "物料名称");

            migrationBuilder.AlterColumn<string>(
                name: "MaterialCode",
                table: "lognote",
                type: "nvarchar(max)",
                nullable: true,
                oldClrType: typeof(string),
                oldType: "nvarchar(max)",
                oldNullable: true,
                oldComment: "物料编码");

            migrationBuilder.AlterColumn<string>(
                name: "Definition",
                table: "lognote",
                type: "nvarchar(max)",
                nullable: true,
                oldClrType: typeof(string),
                oldType: "nvarchar(max)",
                oldNullable: true,
                oldComment: "说明");

            migrationBuilder.AlterColumn<string>(
                name: "Batch",
                table: "lognote",
                type: "nvarchar(max)",
                nullable: true,
                oldClrType: typeof(string),
                oldType: "nvarchar(max)",
                oldNullable: true,
                oldComment: "批次");
        }
    }
}
